package controller;

import dao.ChatClientDao;

import java.util.ArrayList;
import java.util.List;

public class ChatClientController {

    private final ChatClientDao chatClientDao = new ChatClientDao();

    public List<String> selectUsers(String username) {
        List<String> strings = chatClientDao.selectUsers1(username);
        List<String> strings1 = chatClientDao.selectUsers2(username);

        List<String> strings2 = new ArrayList<>();
        strings2.addAll(strings);
        strings2.addAll(strings1);

        return strings2;
    }
}